/**
 * 协议
 * @return {[type]} [description]
 */
var url1=window.sessionStorage.getItem('url1');
var name=window.sessionStorage.getItem('username');
var protocol_name=window.sessionStorage.getItem('protocolName');
$.ajax({
    url:url1+'listRecommends',
    type:'POST',
    data:{'protocolName':protocol_name},
    dataType:'json',
    success:function (datas) {
        var holder=$('#holder_of_items');
        holder.html('');
		var per=datas.data;
		for(var i=0;i<per.length;i++){
			var one_item=$('<div></div>');
			one_item.addClass('one_item');
			var recommendText=$('<div></div>');
			recommendText.addClass('items');
			recommendText.attr('id','recommend_text');
			recommendText.html(per[i].recommendText);
			one_item.append(recommendText);
			var type=$('<div></div>');
			type.addClass('items');
			type.attr('id','type');
			type.html(per[i].type);
			one_item.append(type);
			holder.append(one_item);
		}
    }
});

